package com.sun.umbrella.service.shiro.factory;

import org.springframework.beans.factory.annotation.Value;

import java.util.LinkedHashMap;

/**
 * @author Jay
 * @version v1.0
 * @description 请添加类描述
 * @date 2017-11-20 12:22
 */


public class FilterChainDefinitionMapBuilder {


    @Value("${sys.id}")
    private String sysId;

    public LinkedHashMap<String,String> builderFilterChainDefinitionMap(String sysId){
        LinkedHashMap<String,String> linkedHashMap = new LinkedHashMap<>();
        linkedHashMap.put("/login","authc");
        linkedHashMap.put("/logout","logout");

        linkedHashMap.put("/authorize","anon");
        linkedHashMap.put("/accessToken","anon");
        linkedHashMap.put("/userInfo","anon");
        return linkedHashMap;
    }

}
